#-*- coding:utf-8 -*-
from dj_outbound_stats.models import Link ,Click
from django.contrib import admin
from forms  import LinkForm

class LinkAdmin(admin.ModelAdmin):
    list_display = ["title","added_date","click_count"]
    form = LinkForm
    

class ClickAdmin(admin.ModelAdmin):
    date_hierarchy = "date"
    list_display = ["link","date"]
    list_filter= ['link','date']    


admin.site.register(Link,LinkAdmin)
admin.site.register(Click,ClickAdmin)
